package com.tjbklx1.rabbitmq.demo11.event;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 在app和rabbitmq之间传递消息的持有对象
 * @author Administrator
 *
 */
public class EventMessage implements Serializable {

	private static final long serialVersionUID = 4406756774946415990L;
	private String queueName;
	private String exchangeName;
	private byte[] eventData;

	public EventMessage(String queueName, String exchangeName, byte[] eventData) {
		this.queueName = queueName;
		this.exchangeName = exchangeName;
		this.eventData = eventData;
	}

	public EventMessage() {
	}

	public String getQueueName() {
		return queueName;
	}

	public String getExchangeName() {
		return exchangeName;
	}

	public byte[] getEventData() {
		return eventData;
	}

	@Override
	public String toString() {
		return "EopEventMessage [queueName=" + queueName + ", exchangeName=" + exchangeName + ", eventData="
				+ Arrays.toString(eventData) + "]";
	}
}